from django.conf.urls import url
from . import views
from . import parents_view
urlpatterns=[
    url(r'^heros_drf_child/$', views.HerosModelView.as_view()),
    url(r'^heros_drf_child/(?P<pk>\d+)/$', views.HeroModelView.as_view()),
    url(r'^heros_drf_paernts/$', parents_view.HeromanyModelViewset.as_view({'get':'list','post':'create'})),
    url(r'^heros_drf_paernts/(?P<pk>\d+)/$', parents_view.HeromanyModelViewset.as_view({'get':'retrieve','put':'update','delete':'destroy'})),
]